/**
 * video 相关api
 */
import request from './index';

/**
 * 上传视频
 * @param {*} data 
 * @returns 
 */
export const uploadVideo = (data) => {
    /**
     * 1: 目前没有意义
     */
    return request({
        method: 'post',
        url: "/movies/video/upload/1",
        data
   })
}
/**
 * 获取视频列表
 * @param {*} data 
 * @returns 
 */
export const getVideoList = (data) => {
    return request({
        method: 'get', 
        url: 'movies/video/list',
        params: data
    })
}

/**
 * 更新视频信息
 * @param {*} data 
 * @returns 
 */
export const updateVideo = (data) => {
    return request({
        method: 'post', 
        url: 'movies/video/update',
        data
    })
}

/**
 * 删除视频
 * @param {*} data 
 * @returns 
 */
export const deleteVideo = (data) => {
    return request({
        method: 'delete', 
        url: 'movies/video/delete/'+ data.fileId,
    })
}

